import { Object3D } from "../objects/Object3D";
import { post } from "../utils/Client";

/**场景 */
class Scene extends Object3D {
  constructor() {
    super();
    Scene.prototype.isScene=true;
  }

  /**
   * 加载关卡
   * @param name 关卡名
   * @returns
   */
  static loadSceneSync(name) {
    return post("preview_level", { key: "load", levelname: name });
  }
  /** 获取所有关卡 */
  static getScenesSync() {
    return post("preview_level", { key: "gets" });
  }
}

export { Scene };
